
//字符串型
let myName: string = "simon";
let myName2: string = 'simon';
let myName3: string = `ouyang`;
let myIntr: string = `hello, 
    my name is ${ myName }
`; // `为ES6引入的操作符
let myIntr2: string = "hello," + "\n" + "    my name is " + myName + "\n"; //与上一行等效
console.log(myIntr);
console.log(myIntr2);

let aa: string = "100";
let bb: string = "200";
console.log(aa + bb);
console.log((+aa) + (+bb)); //在字符串前加上+号，可以转换成number类型